package com.fat.entity;

import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.*;
import lombok.experimental.Accessors;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Accessors(chain = true)
@Schema(description = "")
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * 主键 : id,  
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "")
    private Integer id;

    /**
     * name,  
     */
    @Schema(description = "")
    @NotBlank(message = "不能为空")
    private String name;

    /**
     * price,  
     */
    @Schema(description = "")
    @NotNull(message = "不能为空")
    private BigDecimal price;

    /**
     * create_time,  
     */
    @Schema(description = "")
    @NotNull(message = "不能为空")
    private LocalDateTime createTime;
}